﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZHDJ.Core.Util;
using ZHDJ.Data.Models.Box;

namespace ZHDJ.Data.Initializer
{
    /// <summary>
    /// 部门初始化
    /// </summary>
    public static class DeptInit
    {
        public static List<Dept> GetDepts()
        {
            var depts = new List<Dept>
            {
                new Dept
                {
                    ID = StringHelper.NewID,
                    Name = "研发部",
                    SortIndex = 1,
                    Remark = "顶级部门",
                    Children = new List<Dept>
                    {
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "开发部",
                            SortIndex = 1,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "测试部",
                            SortIndex = 2,
                            Remark = "二级部门"
                        }
                    }
                },
                new Dept
                {
                    ID = StringHelper.NewID,
                    Name = "销售部",
                    SortIndex = 2,
                    Remark = "顶级部门",
                    Children = new List<Dept>
                    {
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "直销部",
                            SortIndex = 1,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "渠道部",
                            SortIndex = 2,
                            Remark = "二级部门"
                        }
                    }
                },
                new Dept
                {
                    ID = StringHelper.NewID,
                    Name = "客服部",
                    SortIndex = 3,
                    Remark = "顶级部门",
                    Children = new List<Dept>
                    {
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "实施部",
                            SortIndex = 1,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "售后服务部",
                            SortIndex = 2,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "大客户服务部",
                            SortIndex = 3,
                            Remark = "二级部门"
                        }
                    }
                },
                new Dept
                {
                    ID = StringHelper.NewID,
                    Name = "财务部",
                    SortIndex = 4,
                    Remark = "顶级部门"
                },
                new Dept
                {
                    ID = StringHelper.NewID,
                    Name = "行政部",
                    SortIndex = 5,
                    Remark = "顶级部门",
                    Children = new List<Dept>
                    {
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "人事部",
                            SortIndex = 1,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "后勤部",
                            SortIndex = 2,
                            Remark = "二级部门"
                        },
                        new Dept
                        {
                            ID = StringHelper.NewID,
                            Name = "运输部",
                            SortIndex = 3,
                            Remark = "二级部门",
                            Children = new List<Dept>
                            {
                                new Dept
                                {
                                    ID = StringHelper.NewID,
                                    Name = "省内运输部",
                                    SortIndex = 1,
                                    Remark = "三级部门",
                                },
                                new Dept
                                {
                                    ID = StringHelper.NewID,
                                    Name = "国内运输部",
                                    SortIndex = 2,
                                    Remark = "三级部门",
                                },
                                new Dept
                                {
                                    ID = StringHelper.NewID,
                                    Name = "国际运输部",
                                    SortIndex = 3,
                                    Remark = "三级部门",
                                }
                            }
                        }
                    }
                }
            };

            return depts;
        }

    }
}
